﻿using SuperSocket.SocketBase.Protocol;

namespace MySuperSocketServer.RequestInfoParser
{
    /// <summary>
    /// 命令行协议（无Key单参数）
    /// </summary>
    public class RequestInfoParserNoKeyOneParameter : IRequestInfoParser<StringRequestInfo>
    {
        public StringRequestInfo ParseRequestInfo(string source)
        {
            string key = "NoKeyOneParameter";
            string body = source.Trim();

            return new StringRequestInfo(key, body, new string[] { body });
        }
    }
}
